export function twoPart<T>(array: T[], filter: (item: T) => boolean) {
  const trueArray: T[] = []
  const falseArray: T[] = []
  array.forEach((item) => {
    if (filter(item)) {
      trueArray.push(item)
    } else {
      falseArray.push(item)
    }
  })
  return [trueArray, falseArray]
}
